﻿using System.ComponentModel.DataAnnotations;

namespace R.FarmSmartSleep.RBAC.API.Common.R.Dtos
{
    public class RolesPermissionListDto
    {
        /// <summary>
        /// 权限ID (主键，自增，不可为空)
        /// </summary> 
        public int PermissionsId { get; set; }
        public string PermissionsName { get; set; }
        /// <summary>
        /// 角色名称 (可空)
        /// </summary>
        public string? RoleName { get; set; }
        /// <summary>
        /// 是否可以查看 (可空)
        /// </summary>
        public bool? CanView { get; set; } 

        /// <summary>
        /// 是否可以添加 (可空)
        /// </summary>
        public bool? CanAdd { get; set; }

        /// <summary>
        /// 是否可以编辑 (可空)
        /// </summary>
        public bool? CanEdit { get; set; }

        /// <summary>
        /// 是否可以删除 (可空)
        /// </summary>
        public bool? CanDelete { get; set; } 
    }
}
